﻿#define DEBUG

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace Net
{
    public class Log
    {
        private Log()
        {
        }

        public static void WriteLog(Exception e)
        {
            Debug.WriteLine(DateTime.Now.ToString() + "： " + e.Message + " [" + e.StackTrace + "]");
        }

        public static void WriteLog(string message, string sourceFile)
        {
            Debug.WriteLine(DateTime.Now.ToString() + "： " + message + " [" + sourceFile + "]");
        }

        public static void WriteLog(string message)
        {
            Debug.WriteLine(DateTime.Now.ToString() + "： " + message);
        }
    }
}
